class AddReqDocs < ActiveRecord::Migration
  
  def self.up
  
    create_table :req_docs do |t|
      t.column :project_id, :integer
      t.column :title, :string
      t.column :descr, :text
      t.timestamps
    end
    
    create_table :req_doc_dependances do |t|
      t.column :upper_id, :integer
      t.column :lower_id, :integer
      t.timestamps
    end
    
  end

  def self.down
    drop_table :req_docs
    drop_table :req_doc_dependances
  end
  
end

